#include "TimelineBar.hpp"
#include "MainView.hpp"
#include "constants.hpp"
#include <FL/Fl_Button.H>
#include <FL/Fl_Hor_Value_Slider.H>
#include <iostream>
using namespace std;
using namespace m3g_viewer;



TimelineBar:: TimelineBar (MainView* view) : Fl_Group(TIMELINE_BAR_X,
                                                      TIMELINE_BAR_Y,
                                                      TIMELINE_BAR_WIDTH,
                                                      TIMELINE_BAR_HEIGHT)
{
    Fl_Button* play = new Fl_Button (PLAY_BUTTON_X + PLAY_BUTTON_MARGIN,
                                     PLAY_BUTTON_Y + PLAY_BUTTON_MARGIN,
                                     PLAY_BUTTON_REAL_WIDTH,
                                     PLAY_BUTTON_REAL_HEIGHT,
                                     "再生");

    Fl_Hor_Value_Slider* slider = new Fl_Hor_Value_Slider (60,260+10,200,20);
    slider->precision (0);
    slider->range (0,1000);

    Fl_Button* repeat = new Fl_Button (REPEAT_BUTTON_X + REPEAT_BUTTON_MARGIN,
                                       REPEAT_BUTTON_Y + REPEAT_BUTTON_MARGIN,
                                       REPEAT_BUTTON_REAL_WIDTH,
                                       REPEAT_BUTTON_REAL_HEIGHT,
                                       "繰り");

    end ();
    box (FL_THIN_UP_BOX);
    
    resizable (0);
}


TimelineBar:: ~TimelineBar ()
{


}


